<template>
<!-- 登陆确定页面 -->
    <div>
        <!-- bool的结果决定哪个盒子展示 -->
        <div class="big-box" v-if="bool">
            <img src="../assets/登录页.jpg" alt="">
            <van-button @click="bool=false" round type="info">立即登陆</van-button>
        </div>
        <NowLogin v-else/>
    </div>
</template>

<script>
import NowLogin from "@/components/NowLogin"
export default {
    data () {
        return {
            bool :true
 
        }
    },
    components :{
        NowLogin
    }
}
</script>
 
<style lang = "less" scoped>
    .big-box{
        width: 100%;
        position: relative;
        img{
            width:100%;
        }
    }
    .van-button{
        position: absolute;
        bottom: 10%;
        left: 40%;
        border: 2px solid #000;
    }
</style>